import Vue from 'vue'
import VueRouter from 'vue-router'

import Center from './routers/Center'
import Home from './routers/Home'
import Theater from './routers/Theater'
import Wallet from './routers/Wallet'

Vue.use(VueRouter)

const routes = [
  {
      path:'/',
      redirect: '/home'
  },
  Home,
  ...Center,
  Theater,
  Wallet
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
